﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace gChartSharp
{
    public class DataPointCollection : CollectionBase
    {
        public void Add(ChartAxisLabel dataPoint)
        {
            List.Add(dataPoint);
        }

        public void Remove(int index)
        {
            if (index > Count - 1 || index < 0)
                throw new InvalidOperationException("ChartDataPointCollection[index] does not exist.");
            else
                List.RemoveAt(index);
        }

        public ChartAxisLabel Item(int index)
        {
            return (ChartAxisLabel)List[index]; 
        }


        public string Render()
        {
            StringBuilder sb = new StringBuilder();

            return sb.ToString();
        }
    }
}
